<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Models\Platform;

class PlatformController extends Controller
{
    public function index()
    {
    	$rs['status'] = false;
    	$fields = ['id','name','thumb'];
    	$list = Platform::select($fields)->get();
    	if($list) {
    		$rs['status'] = true;
    		$rs['data']   = $list;
    		return response()->json($rs);
    	}
    	return response()->json($rs);
    }
}
